Returns the values of an Enum type (Type.IsEnum == true).

Namespace:  C1.Xaml
Assembly:  C1.Xaml (in C1.Xaml.dll)

Syntax

C#
public static IList<T> GetEnumValues<T>(
	this Type enumType
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetEnumValues(Of T) ( _
	enumType As Type _
) As IList(Of T)

Parameters

enumType
Type: System..::..Type
Enum type.

Type Parameters

T
Enum type.

Return Value

The list of values for that enum type.

See Also